﻿<!DOCTYPE html>
<html ng-app="app">
<head>
    <title>后台管理</title>
    <style type="text/css">
    .wrap {
        position:relative;
        margin:0 auto;
        width:900px;
    }
    #header, #footer {
        width:100%;
        float:left;
    }
    #footer {
        position:fixed;
        bottom:0;
        z-index:999999;
    }
        /*html, body {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        #container {
            min-height: 100%;
            position: relative;
        }

        #header {
            background: #ff0;
            padding: 10px;
        }

        #body {
            padding: 10px;
            padding-bottom: 60px; /* Height of the footer */
        /*}

        #footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 60px; /* Height of the footer */
            /*background:#6cf;*/
        /*}*/
        img.navbar-brand
        {
            height: 50px;
            width: 50px;
            float: left;
            padding: 5px 5px;
            /*font-size: 18px;
            line-height: 20px;*/
        }
    </style>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="libs/bootstrap-3.3.5/css/bootstrap.min.css">
    <link href="stylesheets/style.css" rel="stylesheet" />
    <link rel="shortcut icon" href="logo.ico" type="image/x-icon" />   
    <script type="text/javascript" src="libs/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>   
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular.js"></script>
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular-route.js"></script>
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular-resource.js"></script>
    <!--<script type="text/javascript" src="libs/angularjs/1.4.3/angular.min.js"></script>
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular-route.min.js"></script>
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular-resource.min.js"></script>-->
    <script type="text/javascript" src="libs/angularjs/1.4.3/angular-cookies.js"></script>
    <link href="libs/ngDialog/css/ngDialog.css" rel="stylesheet" />
    <link href="libs/ngDialog/css/ngDialog-theme-default.css" rel="stylesheet" />
    <link href="libs/ngDialog/css/ngDialog-theme-plain.css" rel="stylesheet" />
    <link href="libs/ngDialog/css/ngDialog-custom-width.css" rel="stylesheet" />
    <script type="text/javascript" src="libs/ngDialog/js/ngDialog.js"></script>
    <script src="javascripts/admin.js"></script>
    <script src="javascripts/common.js"></script>
</head>
<body ng-controller="UserController" ng-init="init()">
    <div ng-show="!isLogin">
        您没有权限浏览该网页。
    </div>
    <div>
        <nav class="navbar navbar-default">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">                   
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button> 
                    <div> 
                    <img class="navbar-brand" src="arrow64.png"/>                 
                    <a class="navbar-brand" href="#" style="font-weight:bold;color:DarkBlue">易处理</a> 
                    </div>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="index.html">交易场</a></li>
                        <li><a href="#">{{user.alias}}</a></li>
                        <li ng-show="isLogin"><a href="#" ng-click="logout();">退出</a></li>
                        <li ng-show="!isLogin" class="dropdown">
                            <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">登录</a>
                            <ul class="dropdown-menu" ng-show="show">
                                <div class="container" style="display: block;max-width:500px;">
                                    <!--<span class="caret x-large up"></span>-->
                                    <form name="loginForm" novalidate>
                                        <div class="form-group">
                                            <span class="h3">登录</span>
                                        </div>
                                        <div class="error-container">
                                            <small class="error"
                                                   ng-show="loginFailed">
                                                用户名或密码不对。
                                            </small>
                                        </div>
                                        <div class="form-group">
                                            <input name="mail" class="form-control input-lg" id="edit-mail" type="text" size="60" maxlength="128" placeholder="手机号码、邮箱或用户名" value="" ng-model="alias" required>
                                        </div>
                                        <div class="form-group">
                                            <input name="pass" class="form-control input-lg" id="edit-pass" type="password" size="60" maxlength="128" placeholder="密码" ng-model="password" required>
                                        </div>
                                        <div class="form-group">
                                            <input name="op" class="btn btn-default" type="submit" value="登录" ng-click="login();">
                                            <!--<input name="op" class="btn btn-default" type="button" value="取消" ng-click="show(false)">-->
                                            <span class="pull-right"><a href="#">忘记密码?</a></span>
                                        </div>
                                    </form>
                                </div>
                            </ul>

                        </li>
                        <li ng-show="!isLogin" class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">注册</a>
                            <ul class="dropdown-menu" ng-show="show">
                                <div class="container" style="display: block;max-width:500px;" id="divRegister">
                                    <!--<span class="caret x-large up"></span>-->
                                    <form novalidate>
                                        <div class="form-group">
                                            <span class="h3">注册</span>
                                        </div>
                                        <div class="form-group">
                                            <input name="mail" class="form-control input-lg" id="edit-mail" type="text" size="60" maxlength="128" placeholder="手机号码、邮箱或用户名" value="" ng-model="alias" required>
                                        </div>
                                        <div class="form-group">
                                            <input name="pass" class="form-control input-lg" id="edit-pass" type="password" size="60" maxlength="128" placeholder="密码" ng-model="password" required>
                                        </div>
                                        <div class="form-group">
                                            <input name="pass" class="form-control input-lg" id="edit-pass" type="password" size="60" maxlength="128" placeholder="确认密码" required>
                                        </div>
                                        <div class="form-group">
                                            <input name="op" class="btn btn-default" type="submit" value="注册" ng-click="register();">
                                        </div>
                                    </form>
                                </div>
                            </ul>
                        </li>
                    </ul>


                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
        <!-- http://getbootstrap.com/css/ Stacked-to-horizontal-->
        <div class="container-fluid" ng-show="isLogin">
            <div class="row">
                <div class="col-xs-2 col-md-2">
                    <ul class="nav nav-stacks">
                        <li role="presentation"><a href="#userManage">管理用户</a></li>
                        <li role="presentation"><a href="#assetSheetManage">管理发布资产</a></li>
                        <li role="presentation"><a href="#offerManage">管理资产竞价</a></li>
                        <li role="presentation"><a href="#orderManage">管理订单</a></li>
                    </ul>
                </div>
                <div class="col-xs-10 col-md-10">
                    <div ng-view>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="container">
        <!--<div id="header"></div>
        <div id="body"></div>-->
        <div id="footer">
            <div class="clear5"></div>
            <div class="fline">&nbsp;</div>
            <div class="fcon">
                <p style="clear:both;text-align:center"><a href="http://www.mul-e.com/">淼一科技(北京)有限责任公司 Mul-E Tech Corp. </a>版权所有&copy; 2015 保留所有权利 京ICP备09062518-4号</p>
            </div>
        </div>
    </div>
</body>

    <!--<div id="footer" style="bottom:0px">
        <div class="clear5"></div>
        <div class="fline">&nbsp;</div>
        <div class="fcon">
            <p style="clear:both;text-align:center"><a href="http://www.mul-e.com/">淼一科技(北京)有限责任公司 Mul-E Tech Corp. </a>版权所有&copy; 2009-2015 保留所有权利 京ICP备09062518号</p>
        </div>
    </div>-->
</html>
